package com.dfbz.bigdata.modules.system.service.impl;



import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dfbz.bigdata.modules.system.doman.CommonDic;
import com.dfbz.bigdata.modules.system.dto.CommonDicDto;
import com.dfbz.bigdata.modules.system.mapper.CommonDicMapper;
import com.dfbz.bigdata.modules.system.service.CommonDicService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author CL
* @description 针对表【tb_common_dic】的数据库操作Service实现
* @createDate 2022-09-23 16:24:43
*/
@Service
public class CommonDicServiceImpl extends ServiceImpl<CommonDicMapper, CommonDic>
    implements CommonDicService {

    @Autowired
    private CommonDicMapper commonDicMapper;

    @Override
    public List<CommonDicDto> getlist(String dicname, int currentPage, int pagesizes) {


        int begin = (currentPage - 1) * pagesizes;
        List<CommonDicDto> list = commonDicMapper.getlist(dicname,begin,pagesizes);
        return list;
    }

    @Override
    public Integer getTotal() {
        return commonDicMapper.getTotal();
    }
}




